package com.swpu.select.service;
import com.swpu.select.pojo.Course;
import java.util.List;

public interface CourseService {
    // 课程管理
    int addCourse(Course course);
    int updateCourse(Course course);
    int deleteCourse(String courseId);
    Course getCourseById(String courseId);
    List<Course> getAllCourses();

    // 课程查询
    List<Course> getCoursesByDepartment(String department);
    List<Course> getCoursesByMajor(String major);
    List<Course> getCoursesByCredit(int credit);
    List<Course> getCoursesByTeacher(String name);
    // 课程统计
    int getCourseCount();
    double getAverageCredit();
}
